package org.gitee.weapp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.gitee.weapp.domain.entity.Order;
import org.gitee.weapp.domain.vo.OrderVo;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {

    int insert(Order order);

    int insertOrderCount(@Param("orderId") String orderId, @Param("map") Map<Integer, Integer> map);

    List<OrderVo> getOrderListById(@Param("type") Integer type);

    OrderVo getOrderById(@Param("orderId") String orderId);
}
